package top.hzy520.order.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.hzy520.common.resp.ApiResult;
import top.hzy520.order.entity.ReduceStock;

import java.util.List;
import java.util.Map;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 15:25 2018/6/10
 */
@FeignClient(name = "stock-service",fallback =StockFallBack.class )
public interface StockServiceClient {
    @RequestMapping("/stock/reduce")
    ApiResult<Map<Long,Integer>> stockReduce(@RequestBody List<ReduceStock> reduceStockList);
}
